package com.xckj.cycling.bluetooth;


import com.inuker.bluetooth.library.BluetoothClient;
import com.xckj.cycling.context.AppContext;

/**
 * @Author: ChenYao
 * @Describe: 蓝牙管理
 * @Date: 2023/3/18 00:07
 */
public class BluetoothClientManager {
    private static BluetoothClient bluetoothClient;

    public static BluetoothClient getBluetoothClient() {
        if (null != bluetoothClient) {
            return bluetoothClient;
        }
        synchronized (BluetoothClientManager.class) {
            if (null == bluetoothClient) {
                bluetoothClient = new BluetoothClient(AppContext.globalContext());
            }
        }
        return bluetoothClient;
    }
}
